const mongoose = require('mongoose')
require('../connect')

const Schema = mongoose.Schema


const todoSchema = new Schema({
    _id: "String",
    todos: [{
        _id: "String",
        title: "String",
        createTime: "String",
        done: Boolean
    }]


})

const todoModel = mongoose.model('todos', todoSchema)

module.exports = todoModel